package com.cmschina.service.impl;

import com.cmschina.custom.ThreadLocalHolder;
import com.cmschina.mapper.EventMapper;
import com.cmschina.pojo.Event;
import com.cmschina.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: li chao
 * @Desc:
 * @create: 2024-08-06 13:35
 **/

@Service
public class EventServiceImpl implements EventService {

    @Autowired
    EventMapper eventMapper;

    @Override
    public List<Event> findAll() {
//        ThreadLocalHolder.set("mysql1");
        Event event = new Event();
        event.setUser("B");
        return eventMapper.findAll(event);
    }
}
